package com.huabo.audit.oracle.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huabo.audit.config.IgnoreSwaggerParameter;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@TableName("TBL_NBSJ_BORROWRECORD")
@Data
@ApiModel("实体类")
@Accessors(chain = true)
public class TblNbsjBorrowRecordEntity {
	
	public final static String TYPE_DAJY = "档案借阅";
	public final static String URL_JYSP = "/nbsj/sjgd/toBorrowinfo?borrowid=";//档案借阅详情路径
	/**
	 * 0未审批 
	 */
	public final static Integer SPNO=0;
	/**
	 * 1 审批中
	 */
	public final static Integer SPKA=1;
	/**
	 * 2 需调整  
	 */
	public final static Integer SPTZ=2;
	/**
	 * 3审批完
	 */
	public final static Integer SPZZ=4;
//	private static final long serialVersionUID = -1355695941497663207L;
	
	@TableId(value = "BORROWID", type= IdType.AUTO)
	@ApiModelProperty(value="")
	private Integer borrowid;
	
	@TableField(value = "CREATEDATE")
	@ApiModelProperty(value="")
	private Date createDate;
	
	@TableField(value = "RETURNDATE")
	@ApiModelProperty(value="")
	private Date returnDate;
	
	@TableField(value = "STATUS")
	@ApiModelProperty(value="")
	private Integer status;
	
	@TableField(value = "MEMO")
	@ApiModelProperty(value="")
	private String memo;
	
	@TableField(value = "tblstaff")
	@ApiModelProperty(value="", hidden = true)
	@IgnoreSwaggerParameter
	private TblStaff tblstaff;
	
	@TableField(value = "tblproject")
	@ApiModelProperty(value="", hidden = true)
	@IgnoreSwaggerParameter
	private TblNbsjProject tblproject;
	
	@TableField(value = "STAFFID")
	@ApiModelProperty(value="", hidden = true)
	@IgnoreSwaggerParameter
	private Integer staffid;
	
	@ApiModelProperty(value="", hidden = true)
	@IgnoreSwaggerParameter
	private String staffname;

	@TableField(value = "PROJECTID")
	@ApiModelProperty(value="")
	private Integer projectid;
	
//	public TblNbsjBorrowRecordEntity(BigDecimal borrowid, TblNbsjProject tblproject,TblStaff tblstaff,  Date createDate,
//			Date returnDate, String status, String memo) {
//		super();
//		this.borrowid = borrowid;
//		this.tblproject = tblproject;
//		this.tblstaff = tblstaff;
//		this.createDate = createDate;
//		this.returnDate = returnDate;
//		this.status = status;
//		this.memo = memo;
//	}
	
	@TableField(value = "borrowDate")
	@ApiModelProperty(value="",hidden = true)
	private String borrowDate;
	
	@TableField(value = "backDate")
	@ApiModelProperty(value="",hidden = true)
	private String backDate;
	

}
